How to scroll to bottom of ListBox

72

How to scroll to bottom of ListBox -

int visibleItems = listBox.ClientSize.Height / listBox.ItemHeight;
listBox.TopIndex = Math.Max(listBox.Items.Count - visibleItems + 1, 0);

Comments

Submit
0 Comments